<?php
//print_r($this->params['pass'][0]);
 if(isset($this->data['Reporte']['paramreporte'])) {
    require_once(dirname(__FILE__).'/html2pdf/html2pdf.class.php');
//    echo htmlentities($this->data['Reporte']['paramreporte']);
    $html2pdf = new HTML2PDF('P','A4','fr');
//    $html2pdf->pdf->SetDisplayMode('fullpage');
    $html2pdf->WriteHTML($this->data['Reporte']['paramreporte'], isset($_GET['vuehtml']));
    $html2pdf->Output($this->params['pass'][0].'.pdf','D');
}
?>
